docs: remove docs code reference#674
Conversation
|
MkDocs preview: https://8995553c.dd-docs-preview.pages.dev Fern preview: https://nvidia-preview-pr-674.docs.buildwithfern.com/nemo/datadesigner
|
PR #674 Review —
|
Greptile SummaryRemoves all code-reference documentation from MkDocs and Fern (pages, nav entries, generation tooling, and CSS), and updates the publish-branch sync script to strip retired reference sections and directories from historical archived versions.
|
| Filename | Overview |
|---|---|
| fern/scripts/fern-published-branch.py | Replaces sync_code_reference_archive with remove_retired_reference_archive; new remove_navigation_section helper correctly identifies section boundaries using the same start/end detection logic as the pre-existing extract_navigation_section. Obfuscated string constants are intentional to prevent self-matching in keyword sweeps. |
| fern/versions/latest.yml | Removes the entire 'Code Reference' nav block (70 lines) from the latest Fern version navigation; remaining nav structure is intact. |
| fern/docs.yml | Removes the libraries/data-designer-config Fern library input block and all code_reference redirect rules; comment on mkdocstrings also cleaned up. |
| Makefile | Removes generate-fern-api-reference targets and py2fern variables; prepare-fern-docs dependency simplified; .PHONY list updated accordingly. |
| .github/workflows/docs-preview.yml | Removes DOCS_PY2FERN variable from the check-fern-docs make invocation; no other logic changes. |
| mkdocs.yml | Removes code_reference nav section and mkdocstrings plugin/CSS config from MkDocs; existing nav structure is otherwise unaffected. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[sync_source called] --> B[Preserve archived versions to tmpdir]
B --> C[Clear published tree]
C --> D[Copy source repo into published root]
D --> E[merge_preserved_versions]
E --> F[remove_retired_reference_archive]
F --> F1[Remove 'Code Reference' nav block\nfrom each archived v*.yml]
F --> F2[Delete */pages/code_reference dirs\nin archived versions]
F --> F3[Overwrite concept/plugin pages\nin archived v* with clean latest versions\nonly if target already exists]
F1 & F2 & F3 --> G[materialize_version_nav_pages]
G --> H[restore_versions_block]
H --> I[validate_redirect_targets]
I --> J[write_publish_metadata]
Reviews (4): Last reviewed commit: "Merge branch 'main' into andreatgretel/d..." | Re-trigger Greptile
|
Thanks for putting this together, @andreatgretel! SummaryThis removes the MkDocs/Fern generated code reference surface, its generation plumbing, dependency entries, nav, redirects, and published-archive cleanup path. The implementation matches the PR description: source-tree sweeps are clean for the old paths/tools, and a dry-run of FindingsWarnings — Worth addressing
What Looks Good
VerdictNeeds changes: please remove or reword the remaining generated-reference breadcrumb in This review was generated by an AI assistant. |
|
thanks for the careful review! fixed that last breadcrumb by rewording it around guides, concepts, tutorials, and recipes. pushed in 20555a7. |
📋 Summary
Removes the generated code reference docs from both MkDocs and Fern so the docs no longer publish or link to the retired API reference surface. This also removes the generation plumbing and adds publish-branch cleanup for archived Fern versions so stale reference pages do not survive in docs-website archives.
🔗 Related Issue
N/A
🔄 Changes
🗑️ Removed
docs/code_reference/**pages, Fernfern/versions/latest/pages/code_reference/**pages, mkdocstrings CSS, and py2fern normalization script.🔧 Changed
fern/scripts/fern-published-branch.pyto strip retired reference archive nav/pages and refresh affected archived concept/plugin pages during publish sync.🔍 Attention Areas
fern/scripts/fern-published-branch.py- Archived Fern versions copy cleaned current versions of the affected concept/plugin pages during publish sync so stale reference links are removed from historical docs.🧪 Testing
.venv/bin/ruff check --fix ..venv/bin/ruff format .make check-fern-docspasses with 0 errors and 2 existing warnings.venv/bin/mkdocs buildpasses with existing docs warningsgit diff --checkmake check-fern-docsmake testpasses (N/A - docs-only; not run)✅ Checklist